package com.liusaidh.utils;

/**
 * @author liusaidh
 * @date 2024/6/4 22:20
 * @description  mysql的字段的枚举
 */

public enum MysqlConstants {
    /**
     * 文章的审核状态
     */
    BLOG_IN_DRAFT(2,"文章在草稿箱"),
    BLOG_AT_AUDITING(0,"正在审核中"),
    BLOG_NOT_PASS_AUDIT(3,"代表审核不通过"),
    BLOG_PASS_AUDIT(1,"代表经过审核"),

    /**
     * 默认的分页
     */
    PAGE_BEGIN(1,"默认的起始页"),
    PAGE_SIZE(10,"默认的每页的数量");


    private Integer state;
    private String message;


    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    MysqlConstants(Integer state, String message) {
        this.state = state;
        this.message = message;
    }
}
